package com.fun.demo.annotation;

import java.util.ArrayList;
import java.util.List;

public class TT {

    String excludes = " <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/HcmJobProcess.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/HcmKnowledgeProcess.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/HcmKpiProcess.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/HcmTalentInventoryProcess.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/HcmIdpProcess.java\" />\n" +




            "      <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/HcmEvaluationProcess.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/HcmIntegralProcess.java\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/evaluationcenter\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/idp\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/integral\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/jobstddesciption\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/jobstdman\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/knowledge\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/knowledgeaudit\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/knowledgebase\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/knowledgemanage\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/kpi\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/kpipersonplan\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/mobile\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/myknowledgeimprove\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/newevaluation\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/personevaluation\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/talentinventory\" includeSubdirectories=\"true\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinPersonEvaluationController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinTalentInventoryController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinOrganizationalIndexCreateController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinNewEvaluationController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinMyKnowledgeImproveController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinMyKnowledgeController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinKpiPersonPlanController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinKpiPersonController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinKpiCreateController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinKnowledgeHRController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinKnowledgeBaseController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinKnowledgeAuditController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinJobStdManController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinJobStdDesciptionController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinInDevelopPlanController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinCensorEvaluationController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/winex/WinEvaluationCenterController.java\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/EvaluationCenter\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/IDP\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/Integral\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/JobStdDesciption\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/JobStdMan\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/Knowledge\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/KnowledgeAudit\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/KnowledgeBase\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/KnowledgeManage\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/Kpi\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/KpiPersonPlan\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/Mobile\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/MyKnowledgeImprove\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/NewEvaluation\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/PersonEvaluation\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/Schedule\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/TalentInventory\" includeSubdirectories=\"true\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinKpiPerson.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinPersonEvaluation.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinKpiCreate.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinJobStdDesciption.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinNewEvaluation.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinKnowledgeAudit.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinInDevelopPlan.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinJobStdMan.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinKnowledgeBase.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinOrganizationalIndexCreate.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinTalentInventory.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinMyKnowledgeImprove.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinKpiPersonPlan.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinKnowledgeManage.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinMyKnowledge.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinEvaluationCenter.jsp\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/webapp/WinEx/WinCensorEvaluation.jsp\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/bscode/src/main/java/com/kayang/hcm\" includeSubdirectories=\"true\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/formajaxprocess/src/main/java/com/kayang/PortalAjaxProcess.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/window/src/main/java/com/kayang/formtype/FormDistributionPlot.java\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/portalmobile\" includeSubdirectories=\"true\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/flowmobile\" includeSubdirectories=\"true\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/WXLoginController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/AppPushMessageController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/AppLoginController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/AppCheckServerController.java\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/JPushMsgController.java\" />\n" +
            "      <directory url=\"file://$PROJECT_DIR$/bscode/src/main/java/com/kayang/flowmobile\" includeSubdirectories=\"true\" />\n" +
            "      <file url=\"file://$PROJECT_DIR$/web/src/main/java/com/kayang/tools/others/ChangePasswordController.java\" />";


    public static void main(String[] args) {
        TT tt = new TT();
        String[] exs = tt.excludes.split("\\n");
        //<exclude>core-site.xml</exclude>
        //<exclude>**/service/*</exclude>
        List<String> ret = new ArrayList();
        for (String ex : exs) {
            ex = ex.trim();
            if (ex.contains("/webapp/")) {
                int start = ex.indexOf("WinEx/");
                int end = ex.indexOf("\" ");
                String s = ex.substring(start, end);
                ret.add(s);
              //  System.out.println(s);
            } else {
                int start = ex.indexOf("com/");
                int end = ex.indexOf("\" ");
                String s = ex.substring(start, end);
               // System.out.println(s);
                ret.add(s);
            }

        }

        for (String s : ret) {
            if (s.indexOf(".") > -1) {
                System.out.println("<exclude>" + s + "</exclude>");
            }else {
                System.out.println("<exclude>" + "" + s + "/*" + "</exclude>");
            }

        }
    }


}
